package com.freeter.common.enums;

public enum SourceTypeEnum {
    BURU_ORD("补入",2), NEW_ORD("新开",1),CHANGE_ORD("变更单",4),BUKUAN_ORD("补款单",3);

    private final String name;
    private final int code;

    SourceTypeEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }
    public static String getName(int code){
        for( SourceTypeEnum st : SourceTypeEnum.values()){
            if(st.code == code){return st.name;}
        }
        return "";
    }
}
